<?php
class UtilController extends Controller{

	private $_debug=true;

	public function actionIndex(){
		
	}
	
	public function actionGeo(){
		$request=Yii::app()->request;
		if($this->_debug||$request->isAjaxRequest){
			$address=$request->getParam('address');
			if($address){
				$geo=Yii::app()->google->getGeoCode($address);
				echo CJSON::encode($geo);
			}
		}
	}

	
	

}